package com.web.portal.dao;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/*
 * creating a generic Dao
 */

public interface BaseDao <T , PK extends Serializable>{
public List<T> search (final Map<? extends Enum<?>, Object> searchCriteria, Class <? extends T> searcTtype);
public void saveOrUpdate(T transientInstance);
public void delete(T Instance);
public List<T> listItems(T instance);
}
